#pragma once
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "freertos/queue.h"
#include "freertos/task.h"
typedef enum {
  S_WIFI_INIT = 0,
  S_WIFI_CONNECTINHG,
  S_WIFI_CONNECTED,
  S_TCP_CONNECTING,
  S_TCP_CONNECTED,
  S_TCP_TX_RX,
} net_state_t;
#define NET_QUEUE_BUF_SIZE 512
extern QueueHandle_t net_send_task_queue;
extern QueueHandle_t net_recv_task_queue;
extern char send_buf[NET_QUEUE_BUF_SIZE];
extern char recv_buf[NET_QUEUE_BUF_SIZE];
void create_net_task(void);
net_state_t get_net_state(void);